package com.hdi.singlestance;

public class Test {

    public static void main(String[] args) {
        A a = A.getObjectA();
        A a1 = a.getObjectA();

        System.out.println(a);
        System.out.println(a1);
//        System.out.println(A.a);
        B b = B.getInstance();
        B b1 = B.getInstance();

        System.out.println(b);
        System.out.println(b1);
    }
}
